package controllers;

import java.util.List;

import models.domain.ContractItem;
import play.*;
import play.db.jpa.Transactional;
import play.mvc.*;
import controllers.service.*;

public class Promotions extends Controller {

	@Transactional
	 public static Result list() {
		 
		 ManagePromotionsService service = new ManagePromotionsService();
		 
		 List<ContractItem> promotions = service.getAvailablePromotions();
		 
		 return ok(views.html.promotions.list.render(promotions));
	 }

}